package com.muyu.danmo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.danmo.mapper.DanmoPrintingPictureTypeMapper;
import com.muyu.danmo.domain.DanmoPrintingPictureType;
import com.muyu.danmo.service.IDanmoPrintingPictureTypeService;

/**
 * 印刷出版图片类型Service业务层处理
 * 
 * @author yangle
 * @date 2024-10-15
 */
@Service
public class DanmoPrintingPictureTypeServiceImpl implements IDanmoPrintingPictureTypeService 
{
    @Autowired
    private DanmoPrintingPictureTypeMapper danmoPrintingPictureTypeMapper;

    /**
     * 查询印刷出版图片类型
     * 
     * @param id 印刷出版图片类型主键
     * @return 印刷出版图片类型
     */
    @Override
    public DanmoPrintingPictureType selectDanmoPrintingPictureTypeById(Long id)
    {
        return danmoPrintingPictureTypeMapper.selectDanmoPrintingPictureTypeById(id);
    }

    /**
     * 查询印刷出版图片类型列表
     * 
     * @param danmoPrintingPictureType 印刷出版图片类型
     * @return 印刷出版图片类型
     */
    @Override
    public List<DanmoPrintingPictureType> selectDanmoPrintingPictureTypeList(DanmoPrintingPictureType danmoPrintingPictureType)
    {
        return danmoPrintingPictureTypeMapper.selectDanmoPrintingPictureTypeList(danmoPrintingPictureType);
    }

    /**
     * 新增印刷出版图片类型
     * 
     * @param danmoPrintingPictureType 印刷出版图片类型
     * @return 结果
     */
    @Override
    public int insertDanmoPrintingPictureType(DanmoPrintingPictureType danmoPrintingPictureType)
    {
        return danmoPrintingPictureTypeMapper.insertDanmoPrintingPictureType(danmoPrintingPictureType);
    }

    /**
     * 修改印刷出版图片类型
     * 
     * @param danmoPrintingPictureType 印刷出版图片类型
     * @return 结果
     */
    @Override
    public int updateDanmoPrintingPictureType(DanmoPrintingPictureType danmoPrintingPictureType)
    {
        return danmoPrintingPictureTypeMapper.updateDanmoPrintingPictureType(danmoPrintingPictureType);
    }

    /**
     * 批量删除印刷出版图片类型
     * 
     * @param ids 需要删除的印刷出版图片类型主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPrintingPictureTypeByIds(Long[] ids)
    {
        return danmoPrintingPictureTypeMapper.deleteDanmoPrintingPictureTypeByIds(ids);
    }

    /**
     * 删除印刷出版图片类型信息
     * 
     * @param id 印刷出版图片类型主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPrintingPictureTypeById(Long id)
    {
        return danmoPrintingPictureTypeMapper.deleteDanmoPrintingPictureTypeById(id);
    }
}
